﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using N2;
using FlexiCommerce.Web.Templates.Items;

namespace FlexiCommerce.Web.Addons.FC.Items
{

    public abstract class AbstractStoreItem : AbstractItem
    {
        #region Properties

        public override string IconUrl
        {
            get { return "~/Templates/UI/Img/" + IconName + ".png"; }
        }

        public override bool IsPage
        {
            get
            {
                return false;
            }
        }

        public override string TemplateUrl
        {
            get
            {
                return "~/Addons/FlexiCommerce/UI/Parts/" + TemplateName + ".ascx";
            }
        }

        protected virtual string IconName
        {
            get { return "page_white"; }
        }

        protected override string TemplateName
        {
            get { return GetType().Name; }
        }

        #endregion Properties
    }
}
